     <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/topNav_login.js"></script>
<link href="{$this->ipsclass->vars['style_url']}/css/style_general.css" rel="stylesheet" type="text/css" />
    <link href="{$this->ipsclass->vars['style_url']}/css/style_forum_pumper.css" rel="stylesheet" type="text/css" />
    

    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/jquery-validate-register.js"></script>
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/register_messages.js"></script>
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/global_constant.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/global_message.js"></script>
    <script type="text/javascript" src='{$this->ipsclass->vars['style_url']}/jscripts/lib/scrolltopcontrol.js'></script>
    <ul id="topnav">
  <!--ipb.javascript.start--> 
    <script type="text/javascript">
        //<![CDATA[
            var ipb_var_st            = "{$this->ipsclass->input['st']}";
            var ipb_lang_tpl_q1       = "{$this->ipsclass->lang['tpl_q1']}";
            var ipb_var_s             = "{$this->ipsclass->session_id}";
            var ipb_var_phpext        = "{$this->ipsclass->vars['php_ext']}";
            var ipb_var_base_url      = "{$this->ipsclass->js_base_url}";
            var ipb_var_image_url     = "{$this->ipsclass->vars['img_url']}";
            var ipb_input_f           = "{$this->ipsclass->input['f']}";
            var ipb_input_t           = "{$this->ipsclass->input['t']}";
            var ipb_input_p           = "{$this->ipsclass->input['p']}";
            var ipb_var_cookieid      = "{$this->ipsclass->vars['cookie_id']}";
            var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
            var ipb_var_cookie_path   = "{$this->ipsclass->vars['cookie_path']}";
            var ipb_md5_check         = "{$this->ipsclass->md5_check}";
            var ipb_new_msgs          = "{$this->ipsclass->member['new_msg']}";
            var use_enhanced_js       = "{$this->ipsclass->can_use_fancy_js}";
            var use_charset           = "{$this->ipsclass->vars['gb_char_set']}";
            var ipb_myass_chars_lang  = "{$this->ipsclass->lang['myass_chars']}";
            var ajax_load_msg		   = "{$this->ipsclass->lang['ajax_loading_msg_new']}";
        //]]>
    </script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ips_ipsclass.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ipb_global.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ips_menu.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['img_url']}/folder_js_skin/ips_menu_html.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/cache/lang_cache/{$this->ipsclass->lang_id}/lang_javascript.js"></script> 
    <script type="text/javascript">
        //<![CDATA[
        var ipsclass = new ipsclass();
        ipsclass.init();
        ipsclass.settings['do_linked_resize'] = parseInt( "{$this->ipsclass->vars['resize_linked_img']}" );
        ipsclass.settings['resize_percent']   = parseInt( "{$this->ipsclass->vars['resize_img_percent']}" );
        //]]>
    </script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ips_xmlhttprequest.js"></script> 
<!--    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/dom-drag.js"></script> -->
    <script type="text/javascript">
        //<![CDATA[
        var ipb_lang_tt_prompt = "{$this->ipsclass->lang['tt_prompt']}";
        var ipb_lang_js_del_1  = "{$this->ipsclass->lang['js_del_1']}";
        var ipb_lang_js_del_2  = "{$this->ipsclass->lang['js_del_2']}";
        var addquotebutton     = "{$this->ipsclass->vars['img_url']}/p_mq_add.gif";
        var removequotebutton  = "{$this->ipsclass->vars['img_url']}/p_mq_remove.gif";
        var unselectedbutton = "{$this->ipsclass->vars['img_url']}/topic_unselected.gif";
        var selectedbutton   = "{$this->ipsclass->vars['img_url']}/topic_selected.gif";
        var lang_gobutton    = "{$this->ipsclass->lang['f_go']}";
        var lang_suredelete  = "{$this->ipsclass->lang['cp_js_delete']}";
        var js_error_no_permission = "{$this->ipsclass->lang['js_error_no_permission']}";
        var js_no_empty_post = "{$this->ipsclass->lang['js_no_empty_post']}";
        //]]>
    </script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ipb_topic.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ips_text_editor_lite.js"></script> 
    <script src="{$this->ipsclass->vars['style_url']}/jscripts/vsajax.js" type="text/javascript"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/ipb_global_xmlenhanced.js"></script> 
    <script type="text/javascript" src="{$this->ipsclass->vars['style_url']}/jscripts/lib/bvalidator/jquery.bvalidator.js"></script>
    <link href="{$this->ipsclass->vars['style_url']}/jscripts/lib/bvalidator/bvalidator.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        //<![CDATA[
        topic_rate = new topic_rate();
        //]]>
    </script>
    <script type="text/javascript">
        //<![CDATA[
        // Set up img vars
        var img_markers = {
                'bc_new.gif' : 'bc_nonew.gif',
                'bf_new.gif' : 'bf_nonew.gif',
                'br_new.gif' : 'br_nonew.gif'
        };
        var regex_markers = 'bc_new.gif|bf_new.gif|br_new.gif';
        var ajaxurl = "{$this->ipsclass->vars['forum_pumper_url']}/index.php?act=xmlout&do=";
        function focus_username( e )
        {
                if ( e.value == "{$this->ipsclass->lang['qli_name']}" )
                {
                        e.value = '';
                        return false;
                }
        }
        function focus_password( e )
        {
                if ( e.value == "------" )
                {
                        e.value = '';
                        return false;
                }
        }
        function dkm_thanks(aid,pid) {	
        vsGet('post-thanks&aid='+aid+'&pid='+pid+'&tid=17622','p_t_'+pid);
        }
        function dkm_suspend(aid,pid) {	
        vsGet('post-suspend&aid='+aid+'&pid='+pid+'&tid=17622','p_c_'+pid);
        }
        //]]>
    </script>
    <!--ipb.javascript.end-->
        <input type="hidden" value="{$this->ipsclass->vars['forum_pumper_url']}" name="forum_base_url" id="forum_base_url" />
        <li class="wg"><a class="wg" href="{$this->ipsclass->vars['default_url']}">&nbsp;</a></li>
        <li class="gt"><a class="gt" href="{$this->ipsclass->vars['default_url']}/home/intro.html">&nbsp;</a></li>
        <li class="dv"><a class="dv" href="{$this->ipsclass->vars['default_url']}/home/services.html">&nbsp;</a></li>
        <li class="lh"><a class="lh" href="{$this->ipsclass->vars['default_url']}/home/contact.html">&nbsp;</a></li>
    </ul>
<ul class="topLogin">
    <script type="text/javascript" language="javascript">
	
        $(function(){
             $('.sub_node').validateRegister();
        });
    </script>
    <if="$this->ipsclass->member['id']==''">
        <li>
            <a href="javascript:void(0)" class="info">{$this->ipsclass->lang['register_title']}</a>
            <div class="sub_node">
                <div class="top_formContainer" >
                    <form action="{$this->ipsclass->vars['forum_url']}/dang-ky-tai-khoan.html" method="post" name="REG" id="REG" onsubmit="return false;" >
                        <input type="hidden" name="referer" value="<if="$_SESSION['referer']">{$_SESSION['referer']}<else />{$_SERVER['HTTP_REFERER']}</if>" />
                        <input type="hidden" name="usingf" id="usingf" value="f" />
                        <div class="top_form">
                          <label>Tên đăng nhập:</label>
                          <span><input type="text" id="UserName" name="UserName" class="textInput bvalidator_invalid" data-bvalidator="minlength[3],maxlength[32],simpleUserName,required"/><b>*</b></span>
                          <p class="top_form_space" id="er_UserName"></p>
                          <label>Tên hiển thị:</label>
                          <span><input type="text" id="members_display_name" name="members_display_name"  class="textInput bvalidator_invalid" data-bvalidator="minlength[3],maxlength[32],simpleRealName,required"/></span>
                          <p class="top_form_space" id="er_members_display_name"></p>
                          <label>Tên thật: </label>
                          <span><input type="text" id="field_15" name="field_15"  class="textInput bvalidator_invalid" data-bvalidator="maxlength[32],simpleRealName"/></span>
                          <p class="top_form_space"></p>
                          <label>Email đăng nhập:</label>
                          <span><input type="text" id="EmailAddress" name="EmailAddress" class="textInput bvalidator_invalid" data-bvalidator="email,required"/><b>*</b></span>
                          <p class="top_form_space" id="er_EmailAddress"></p>
                          <label>Mật khẩu:</label>
                          <span><input type="Password" id="Password" name="PassWord"  class="textInput bvalidator_invalid" data-bvalidator="minlength[6],maxlength[32],simplePassword,required"/><b>*</b></span>
                          <p class="top_form_space" id="er_Password"></p>
                          <label>Xác nhận mật khẩu:</label>
                          <span><input type="password" id="Password_Check" name="PassWord_Check" class="textInput bvalidator_invalid" data-bvalidator="minlength[3],maxlength[32],equalto[Password],required"/><b>*</b></span>
                          <p class="top_form_space" id="er_Password_Check"></p>
                        </div>
                        <!--{REG.ANTISPAM}-->
                        <p id="er_Capcha_Check" class="top_form_space"></p>
                        <span class="note">Ghi chú: (<span>*</span>) Thông tin không thể bỏ trống</span>
                        <p><input type="checkbox" id="ok" name="ok" class="bvalidator_invalid" data-bvalidator="required"/>&nbsp;&nbsp;Chấp nhận những <a href="#">điều khoản</a> của WORLD GAMES</p>
                        <p class="privacy_warning" id="er_privacy"></p>
                        <div class="top_formBut">
                            <input type="submit" value="Đăng ký" name="btnLogin" id="btnLogin" class="button" />
                        </div>
                    </form>
                </div>
            </div>
        </li>
    </if>
    <li>
        <a href="javascript:void(0)" class="info"> 
            <if="$this->ipsclass->member['id']!=''"> 
                <b>{$this->ipsclass->member['members_display_name']}</b>
            <else />
                {$this->ipsclass->lang['login_title']}
            </if>
        </a>
        <div class="sub_node">
            <if="$this->ipsclass->member['id']!=''">
                <div class="top_formContainer">
                    <div class="user_img">
                        <a href="{$this->ipsclass->vars['forum_url']}/{$this->ipsclass->member['name']}/">
                            <if="$this->ipsclass->member['avatar_location'] != ''">
                                <img src="{$this->ipsclass->vars['uploads_url_avatar']}{$this->ipsclass->member['avatar_location']}"/>
                            <else />                 
                                  <img src='http://style.worldgames.vn/images/profile/folder_profile_portal/no-avatar1.jpg' />
                            </if>
                        </a>
                    </div>
                    <div class="user_info">
                        <p><a href="{$this->ipsclass->vars['forum_url']}/{$this->ipsclass->lang['seoInfoPage']}{$this->ipsclass->lang['seoPageSuffix']}">{$this->ipsclass->member['id']}{$this->ipsclass->member['cusFullName']}</a></p>
                        <p><b>{$this->ipsclass->lang['age_title']}:</b> {$this->ipsclass->yearold}</p>
                        <p><b>{$this->ipsclass->lang['fcoin_title']}:</b> {$this->ipsclass->member['field_7']}$</p>
                        <p><b>{$this->ipsclass->lang['level_title']}:</b> {$this->ipsclass->member['field_4']}</p>
                        <p><b>{$this->ipsclass->lang['EXP_title']}:</b> {$this->ipsclass->member['field_3']}</p>

                        <!--    Noi ?:<if="$this->ipsclass->member['members_address']!=''">{$this->ipsclass->member['members_address']} <else /> Chua r? </if><br /> --> 
                        <p><b>{$this->ipsclass->lang['last_visit_title']}:</b> {$this->ipsclass->member['last_visit']}</p>
                        <div class="top_formBut"><a  class="but" href="{$this->ipsclass->vars['default_url']}/dang-xuat.html">{$this->ipsclass->lang['logout_title']}</a></div>
                    </div>
                    <div class="clear"></div>
                </div> 
            <else />
                <div class="top_formContainer">
                    <form action="{$this->ipsclass->vars['forum_url']}/dang-nhap.html" id="LOGIN" method="post" name="LOGIN" onSubmit="return login();">
                        <input type="hidden" name="referer" value="http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}" />
                        <div class="top_form">
                            <label>{$this->ipsclass->lang['enter_name']}</label>
                            <span><input name="Name" id="Name" type="text" class="textInput bvalidator_invalid" data-bvalidator="minlength[3],maxlength[32],simpleUserName,required"/></span>
                            <p class="top_form_space"></p>
                            <label>{$this->ipsclass->lang['enter_pass']}</label>
                            <span><input name="Pass" id="Pass" type="password" class="textInput bvalidator_invalid" data-bvalidator="minlength[6],maxlength[32],simplePassword,required"/></span> 
                            <p class="top_form_space" id="er_login"></p>
                        </div>
                        <div class="fogetPass">
                            <a href="{$this->ipsclass->vars['forum_url']}/quen-mat-khau.html">{$this->ipsclass->lang['pass_link']}</a>
                        </div>
                        <p><input name="CookieDate" type="checkbox" value="1" checked="checked" />&nbsp;<span>{$this->ipsclass->lang['rememberme']}</span></p>
                        <div class="top_formBut" div_login>
                            <input type="submit" value="Đăng nhập" name="btnLogin" id="btnLogin" class="button" />
                        </div>
                    </form>
                </div>
            </if>
        </div>
    </li>
</ul>  
    
    <?php 
        $server = new SoapClient
    ?>